package org.ycframework;

import com.yc.MyConfig;
import com.yc.service.UserBiz;
import org.ycframework.context.YcAnnotationConfigApplicationContext;
import org.ycframework.context.YcApplicationContext;

/**
 * @ClassName TestMain3
 * @since: 2023/7/27 14:45
 * @auth: kirito
 * @description:
 **/
public class TestMain3 {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
//        Logger logger = LoggerFactory.getLogger(TestMain3.class);
//        logger.error("error");
//        logger.warn("warn");
//        logger.info("info");
//        logger.debug("debug");
//        logger.trace("trace");
        YcApplicationContext ac = new YcAnnotationConfigApplicationContext(MyConfig.class);
        UserBiz ub = (UserBiz) ac.getBean("userBizImpl");
        System.out.println(ub);
        ub.add("萝萝");
//        Object obj = Class.forName("com.yc.service.UserBiz").newInstance();
    }
}
